package pl.perseus.service.rach;

import java.util.List;

import pl.perseus.model.Rach;
import pl.perseus.model.User;
import pl.perseus.service.exception.TransferException;

public interface IRachService {

	Rach insertRach(Rach rach);
	
	Rach selectById(Long id);

	List<Rach> getRachsForUser(User user);

	List<Rach> getAllRachsToTransferTo(User user);

	Rach getByIdRach(Long id);

	void transfer(Rach out, Rach in, Long cash, String title, String receiverName, String confirmationCode) throws TransferException;

	List<Rach> getMineRachsToTransfer(String login, Rach rach);
	
}
